﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Teacher
    {
        private string cource;

        public string Cource { get => cource; set => cource = value; }
        public Teacher() { }

        public Teacher(string cource) 
        {
            this.Cource = cource;
        
        }

        public void major() 
        {
            Console.WriteLine("我是{0}课程的老师",this.Cource); 
        }
    }
}
